package com.hn.kiss.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.hn.kiss.config.validdator.FlagValidator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 字典明细表
 * </p>
 *
 * @author zxy
 * @since 2020-08-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_dict_detail")
@ApiModel(value="DictDetail对象", description="字典明细表")
public class DictDetail implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "字典类别代码", required = true)
    @NotBlank
    private String dictType;

    @ApiModelProperty(value = "字典代码", required = true)
    @NotBlank
    private String dictCode;

    @ApiModelProperty(value = "字典名称", required = true)
    @NotBlank
    private String dictName;

    @ApiModelProperty(value = "字典状态:1启用,0禁用", required = true)
    @NotBlank
    @FlagValidator(value = {"1", "0"})
    private String state;

    @ApiModelProperty(value = "排序号", required = true)
    @NotNull
    private Integer orderNo;

    @ApiModelProperty(value = "名称简拼")
    private String py;



}
